package tk.mybatis.springboot.model;

import java.math.BigDecimal;
import java.util.List;

public class TCarInsuranceOrderExtend extends TCarInsuranceOrder{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1210304800228447802L;
	
	private BigDecimal money;
	
	private BigDecimal totalCost;
	
	private BigDecimal rebates; 
	
	private String customerName;
	
	private String docCode;
	
	private String licenseNo;
	
	private String mobile;
	
	private String userName;
	
	private String addressMobile;
	
	private String address;
	
	private String unitCode;
	
	private String unitName;
	
	private String logoURL;
	
	private String city;
	
	private String province;
	
	private List<TInsOrderCostExtends> tInsOrderCosts;
	
	public List<TInsOrderCostExtends> gettInsOrderCosts() {
		return tInsOrderCosts;
	}

	public void settInsOrderCosts(List<TInsOrderCostExtends> tInsOrderCosts) {
		this.tInsOrderCosts = tInsOrderCosts;
	}

	public String getLicenseNo() {
		return licenseNo;
	}

	public void setLicenseNo(String licenseNo) {
		this.licenseNo = licenseNo;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getUnitCode() {
		return unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}

	public String getLogoURL() {
		return logoURL;
	}

	public void setLogoURL(String logoURL) {
		this.logoURL = logoURL;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getAddressMobile() {
		return addressMobile;
	}

	public void setAddressMobile(String addressMobile) {
		this.addressMobile = addressMobile;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getDocCode() {
		return docCode;
	}

	public void setDocCode(String docCode) {
		this.docCode = docCode;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public BigDecimal getTotalCost() {
		return totalCost;
	}

	public void setTotalCost(BigDecimal totalCost) {
		this.totalCost = totalCost;
	}

	public BigDecimal getRebates() {
		return rebates;
	}

	public void setRebates(BigDecimal rebates) {
		this.rebates = rebates;
	}

	public BigDecimal getMoney() {
		return totalCost == null ? BigDecimal.ZERO : totalCost.subtract(rebates == null ? BigDecimal.ZERO : rebates);
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}
}
